package com.sg.bean;

/**
 * @author  fyp
 * @author zl
 * 商品实体类
 */
public class Commodity {

    /**
     *商品编号
     */
    private int comId;

    /**
     *商品名称
     */
    private String comName;

    /**
     *商品价格
     */
    private int comPrice;

    /**
     *商品照片
     */
    private String comImg;

    /**
     *商品状态编号
     */
    private int comStateId;

    /**
     * 商品分类编号
     */
    private int cateId;

    public Commodity() {
    }

    public Commodity(int comId, String comName, int comPrice, String comImg, int comStateId, int cateId) {
        this.comId = comId;
        this.comName = comName;
        this.comPrice = comPrice;
        this.comImg = comImg;
        this.comStateId = comStateId;
        this.cateId = cateId;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "comId=" + comId +
                ", comName='" + comName + '\'' +
                ", comPrice=" + comPrice +
                ", comImg='" + comImg + '\'' +
                ", comStateId=" + comStateId +
                ", cateId=" + cateId +
                '}';
    }

    public int getComId() {
        return comId;
    }

    public void setComId(int comId) {
        this.comId = comId;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public int getComPrice() {
        return comPrice;
    }

    public void setComPrice(int comPrice) {
        this.comPrice = comPrice;
    }

    public String getComImg() {
        return comImg;
    }

    public void setComImg(String comImg) {
        this.comImg = comImg;
    }

    public int getComStateId() {
        return comStateId;
    }

    public void setComStateId(int comStateId) {
        this.comStateId = comStateId;
    }

    public int getCateId() {
        return cateId;
    }

    public void setCateId(int cateId) {
        this.cateId = cateId;
    }
}
